﻿<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="HudsonMonitor.SettingsWindow" x:Name="Window" Title="Settings" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" Icon="/HudsonMonitor;component/Resources/hudsonicon.ico" Topmost="True" d:DesignHeight="178" d:DesignWidth="300" SizeToContent="WidthAndHeight">
	<Window.Background>
		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FF999999" Offset="1" />
			<GradientStop Color="White" />
		</LinearGradientBrush>
	</Window.Background>
	<Grid x:Name="LayoutRoot">
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
			<RowDefinition Height="*" />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="0.300*" />
			<ColumnDefinition Width="Auto" />
		</Grid.ColumnDefinitions>

		<Label Content="Hudson URL" Margin="4" Grid.Column="0" Grid.Row="0" />
		<TextBox x:Name="urlTextBox" MinWidth="200" Grid.Column="1" Grid.Row="0" TextWrapping="NoWrap" Height="22" Margin="6" PreviewLostKeyboardFocus="OnUrlLostFocus" ToolTip="Enter url to hudson server. For example, http://localhost:8080" MaxLines="1" />
		<Label Content="Poll interval" Margin="4" Grid.Column="0" Grid.Row="1" />
		<TextBox x:Name="TextBoxInterval" MinWidth="200" Grid.Column="1" Grid.Row="1" TextWrapping="Wrap" Height="22" Margin="6" Width="200" PreviewLostKeyboardFocus="OnPollLostFocus" ToolTip="Specify how many minutes between each poll" MaxLines="1" />
        <Label Content="Run at startup" Margin="4" Grid.Column="0" Grid.Row="2" />
        <CheckBox Content="Run at startup" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" Margin="8" Name="checkBoxRunAtStartup" VerticalAlignment="Center" Checked="OnRunAtStartupChecked"/>
        <StackPanel Grid.Column="1" Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Right">
			<Button x:Name="okButton" Content="Ok" Click="OnOkClick" Margin="4" Height="22" Width="25" IsDefault="True" />
			<Button x:Name="cancelButton" Content="Cancel" Click="OnCancelClick" Margin="4" Height="22" Width="45" IsCancel="True" />
		</StackPanel>
    </Grid>
</Window>